import { http } from "../utils/http"

// 添加收货地址
export const getMemberCartAPI = () => {
  return http({
    url: '/member/cart',
    method: 'get'
  })
}
// 删除购物车记录
export const deleteMemberCartAPI = (data) => {
  return http({
    url: '/member/cart',
    method: 'delete',
    data
  })
}
// 修改购物车信息(选中状态、数量)
export const putMemberCartAPI = (skuId, data) => {
  return http({
    url: '/member/cart/' + skuId,
    method: 'put',
    data
  })
}
// 修改购物车全选状态
export const putMemberAllCartAPI = (data) => {
  return http({
    url: '/member/cart/selected',
    method: 'put',
    data
  })
}